FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160843.p0.ga42fad8.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160843.p0.ga42fad8.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=a42fad8 OS_GIT_VERSION=4.10.0-202202160843.p0.ga42fad8.assembly.stream-a42fad8 SOURCE_DATE_EPOCH=1643197241 SOURCE_GIT_COMMIT=a42fad8768e171ee014d23d3cbdc5aa0e65f7dec SOURCE_GIT_TAG=a42fad8 SOURCE_GIT_URL=https://github.com/uccps-samples/must-gather 
WORKDIR /go/src/github.com/uccps-samples/must-gather
COPY . .
ENV GO_PACKAGE github.com/uccps-samples/must-gather

FROM openshift/ose-cli:v4.10.0.20220216.090355
ENV __doozer=update BUILD_RELEASE=202202160843.p0.ga42fad8.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160843.p0.ga42fad8.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=a42fad8 OS_GIT_VERSION=4.10.0-202202160843.p0.ga42fad8.assembly.stream-a42fad8 SOURCE_DATE_EPOCH=1643197241 SOURCE_GIT_COMMIT=a42fad8768e171ee014d23d3cbdc5aa0e65f7dec SOURCE_GIT_TAG=a42fad8 SOURCE_GIT_URL=https://github.com/uccps-samples/must-gather 
COPY --from=builder /go/src/github.com/uccps-samples/must-gather/collection-scripts/* /usr/bin/
RUN yum install --setopt=tsflags=nodocs -y jq && yum clean all && rm -rf /var/cache/yum/*

LABEL \
        name="openshift/ose-must-gather" \
        com.redhat.component="ose-must-gather-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="oc" \
        release="202202160843.p0.ga42fad8.assembly.stream" \
        io.openshift.build.commit.id="a42fad8768e171ee014d23d3cbdc5aa0e65f7dec" \
        io.openshift.build.source-location="https://github.com/uccps-samples/must-gather" \
        io.openshift.build.commit.url="https://github.com/uccps-samples/must-gather/commit/a42fad8768e171ee014d23d3cbdc5aa0e65f7dec" \
        version="v4.10.0"

